package com.ruoyi.syf.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.syf.domain.RiskEvaluationAccidentDetail;

import java.util.List;

/**
 * 风险判定-事故明细Service接口
 *
 * @author ruoyi
 * @date 2024-07-04
 */
public interface IRiskEvaluationAccidentDetailService extends IService<RiskEvaluationAccidentDetail>
{
    /**
     * 查询风险判定-事故明细
     *
     * @param id 风险判定-事故明细主键
     * @return 风险判定-事故明细
     */
    public RiskEvaluationAccidentDetail selectRiskEvaluationAccidentDetailById(Long id);

    boolean saveList(Long evaluationId,List<Long> accidentTypeIds);

    List<RiskEvaluationAccidentDetail> getListByEvaluationId(Long evaluationId);

    boolean updateByEvaluationId(Long evaluationId,List<Long> accidentList);

    boolean deleteByEvaluationId(List<Long> evaluationIds);

}
